package com.ant.storage.service;

import com.ant.storage.common.ResultPage;
import com.ant.storage.common.ResultVo;
import com.ant.storage.dto.ImgUrlDto;
import com.ant.storage.dto.PurchaseOrdersDto;
import com.ant.storage.dto.PurchaserDto;
import com.ant.storage.dto.SingleDto;
import com.ant.storage.excel.DepExcel;
import com.ant.storage.pojo.PurchaseOrders;
import com.ant.storage.vo.PurchaseOrdersVo;
import com.ant.storage.vo.SingleVo;
import com.ant.storage.vo.SupplierVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author melon
 * @since 2022-03-16
 */
public interface IPurchaseOrdersService extends IService<PurchaseOrders> {
    ResultVo getPurchaseOrderList(Map<String, Object> params);

    List<PurchaseOrders> getPurchaseOrderListById(Integer id);


    ResultVo getPurchaseOrderComplete(PurchaseOrdersVo purchaseOrdersVo);

    ResultVo findGoodsAndWarehousing(PurchaseOrdersDto purchaseDto);

    ResultPage findPurchaseOrderPage(PurchaseOrdersDto purchaseOrdersDt);

    ResultVo updateImgUrl(ImgUrlDto dto);

    //获取供应商采购明细分页信息
    Map<String,Object>   findPurchaseSupplierOrderPage(PurchaseOrdersDto purchaseOrdersDt);

    List<SupplierVo>  findDetailByIdCensus(Integer id);

    List<DepExcel> exportdep(Integer depId);

    ResultVo findGoodsRejected(PurchaseOrdersDto purchaseDto);

    ResultVo findGoodsSingleWarehousing(PurchaserDto dto);

    ResultVo findCarWarehousing(PurchaserDto dto);

    List<SingleVo> findSingle();

    ResultVo saveSingle(SingleDto dto);

    List<SingleVo> findPlanSingle();


}
